/**
 *
 */
package com.ebocy.hammer.core.socket.client;

import org.apache.mina.core.session.IoSession;

import com.ebocy.hammer.core.message.AbstractS2CMessage;

/**
 * 给World服务器发送消息
 * @author HouQingrong May 16, 2012
 */
public class ConnectorSender {
	private static IoSession session;
	public ConnectorSender() {
		this.session = session;
	}

	public static IoSession getSession() {
		return session;
	}

	public static void setSession(IoSession session) {
		ConnectorSender.session = session;
	}

	public static void sendMessage(AbstractS2CMessage message) {
		session.write(message.getData());
	}
}
